
import { EChartType, ESubAxisChartType } from "@/core/ChartType";
import { ChartFormItemContext } from "../ChartFormItem";
import { EChartFormItem, EMateDataType, IChartFormItem, IMateData } from "../ChartItemType";
import PieChartFormAbstract from "./PieChartFormAbstract";
export default class AxisChartForm extends PieChartFormAbstract {
    private XAxis: ChartFormItemContext;
    private YAxis: ChartFormItemContext;
    // private chartType: ChartFormItemContext;
    // private subChartType: ChartFormItemContext;
    constructor() {
        super();
        this.useFormState("xAxis", this.XAxis = new ChartFormItemContext({
            label: "X轴",
            value: "",
            placeHolder: "请选择X轴的数据",
            // name: "xAxis",
            datas: "",
            type: EChartFormItem.Select,
            mateData: {
                type: EMateDataType.String
            }
        }));

        this.useFormState("yAxis", this.YAxis = new ChartFormItemContext({
            label: "Y轴2",
            value: "",
            placeHolder: "请输入图标标题",
            // name: "yAxis",
            datas: { type: 'bar' },
            type: EChartFormItem.Select,
            mateData: {
                type: EMateDataType.Number
            }
        }));
    }

    chartDataComputed() { }

}